<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="unsubmit">基本信息</view>
			<view :class="['inv-h',Inv==1?'inv-h-se':'']" @click="submit">出入库</view>
		</view>

		<view class="" style="position: absolute;width: 100%;margin-top: 100upx">
			<view class="formPage" v-show="Inv==0">
				<form>
					<fromItem title="取样编号" :data="totalData.fSamplenostr" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="样品名称" :data="totalData.fSamplename" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="工程部位/用途" type="textarea" :data="totalData.fProjectlocation" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="制件日期" :data="totalData.fMakedates" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="强度等级" :data="totalData.fStrengthgrade" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="龄期(天)" :data="totalData.fSpecimenage" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="规定试验日期" :data="totalData.fPlantestdates" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="数量(组)" :data="totalData.fNum" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>







				</form>



			</view>

			<view class="formPage" v-show="Inv==1">
				<form>

					<view style="width: 100%;">
						<fromItem title="存放位置" :data="totalData.fPosition" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						
						<fromItem title="入库日期" :data="totalData.fWarehousingdates" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
					
						<fromItem title="入库人员" :data="totalData.fWarehousingusername" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<fromItem title="出库日期" :data="totalData.fDeliverydates" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
											
						<fromItem title="出库人员" :data="totalData.fDeliveryusername" flex="right" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<view class="sampaleInfo" style="background-color: #ccc;">
							<view>试件编码</view>
							<view>层</view>
							<view>号</view>
							<view>状态</view>
						</view>
						<view class="sampaleInfo"
							:style="{'background':item.status==0?'rgba(234,234,36,0.5)':item.status==1?'rgba(77,237,8,0.5)':'#fff'}"
							v-for="item in formData.itemsList" :key="item.fId">
							<view>{{item.fSampleitems}}</view>
							<view>{{item.fLayername}}</view>
							<view>{{item.fNumname}}</view>
							<view>{{item.fDeliveryitems==""?'待出库':'已出库'}}</view>
						</view>




					</view>

					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>

				</form>
			</view>


		</view>
	</view>
</template>
<script src="./index.js">
</script>
<style scoped lang="less">
	@import './index.less';
</style>
